# a, *b, c = range(5)
#
# print(a, b, c)



a = [1,2,3,1,2,4,6]
# b = list(b.fromkeys(a))
# # 或者 b = list(b.fromkeys(a).keys())
# # 或者 b = list(b.fromkeys(a).values())
# print(b)

a.sort()
b = []
i = 0
while i < len(a):
    if a[i] not in b:
        b.append(a[i])
    else:
        i += 1
print(b)